package com.daocao.hua.api.callback;

import com.daocao.hua.api.contract.BaseContract;
import com.daocao.hua.model.InitAppModel;
import com.daocao.hua.model.LoginAndRegisterModel;
import com.daocao.hua.model.ResponseModel;

/**
 * Created by Administrator on 2017/5/14.
 */

public interface RegisterContract {
    interface View extends BaseContract.BaseView {
        void registerSuccess(LoginAndRegisterModel item);

        void loginSuccess(LoginAndRegisterModel item);

        void getCodeSuccess(ResponseModel item);

        void initSuccess(InitAppModel item);
    }

    interface Presenter<T> extends BaseContract.BasePresenter<T> {
        void register(String account, String verifyCode, String password, String email);

        void login(String account, String password);

        void getCode(String type, String mobile);

        void initApp();
    }
}
